home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 69
/
069.d81
/
photo safari
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
6KB
|
169 lines
2 ifa%=0thenpoke52,128:poke56,128:clr:gosub308
4 a%=a%+1:ifa%<3thenload"ss.ml"+right$(str$(a%),1),8,1
6 poke56576,197:poke53272,8
8 poke648,128:goto176
10 syss(.):syss(8),v(9):poke54290,128:h=.:ifl=othenpokev(2),.
12 q=50-l*3:ifq<25thenq=25
14 syss(o):e=peek(v(8)):onegoto18,26,20,16
16 syss(8),v(9):poke54290,128
18 fori=.toq:next:goto14
20 i=.:poke53269,6
22 i=o-i:poke33785,189+i:poke33786,184+i:poket,peek(t)-8:pokeu,peek(u)+8
24 forj=1to50:next:ifpeek(t)>8andpeek(u)<210then22
26 fori=.to500:next:p=32-peek(v(3)):poke53269,.:syss(9):print"[147]":poke53264,.
28 poke53271,o:poke53277,o:poke53276,o:poke198,.
30 ife=2thenprint" you're out of film!":goto34
32 print" the monkey took your camera!":g=g+o
34 print"[158] returning home...":gosub88:poke53280,11:poke53281,15
36 print"[147]well, let's see what you've got for me this time..."
38 print" (press space or fire...)":gosub82
40 print"[147]":poke53281,5:syss(4):i=-o
42 printd$e$:i=i+o:ifi=pthen94
44 pokev(8),i:syss(5):poke53275,o:a=int(peek(33784)/2-80):ifa<.thena=14
46 c=21-peek(v(8)):z=d(a):d=z*c/20:ifa>11thenpoke53275,.
48 j=peek(v)-160:k=peek(w)-112:ifk<y(a)thenk=k*2:goto52
50 ifk<3andj=.andpeek(33107)<>32thenpoke53275,.
52 r=o-(j^2+k^2)^.5/64:ifr<.thenr=.
54 r=r*r:d=int(d*r+.5):b=b+d:s=s+d:f=.:a=a-(a>6):a=int(a/2):a(a)=a(a)+o
56 ifa(a)>9andz>.thenj=d:d=int(d/2):b=b-j+d:s=s-j+d:f=int(rnd(o)*2+18):goto78
58 ifz>.thenz=d/z
60 ifz<.75then68
62 f=int(rnd(o)*2):ifh>6thenf=f+5:goto78
64 f=f+o:ifz<.9thenf=f+2
66 goto78
68 ifd=.andrnd(o)>.5thenf=15:goto78
70 j=int(rnd(o)*2):ifh>.andh<5thenf=j+13:goto78
72 ifr<.3thenf=j+7:goto78
74 ifc<16thenf=j+9:goto78
76 ifz<.25thenf=j+11
78 a$=str$(d):a$=right$(a$,len(a$)-o)
80 printd$c$(f)tab(35)"$"a$"";:h=f:gosub82:goto42
82 syss(6):j=peek(v(8)):if(jand16)=.then82
84 syss(6):j=peek(v(8)):if(jand16)then84
86 return
88 poke54296,15:poke54277,16:poke54278,.:fori=5to9:poke54272,.:poke54273,i
90 forj=.to240step24:poke54272,j:poke54276,129:poke54276,128:fork=1to80-6*i
92 nextk,j,i:return
94 ife<>3then102
96 printd$e$:syss(7):poke53275,.:poke53287,10:poke33784,189
98 pokev,160:pokew,112:poke53269,o:printd$c$(int(rnd(o)*3+15))"";
100 gosub82
102 poke53269,.:syss(3):a$=str$(b):a$=right$(a$,len(a$)-o)
104 poke53280,11:poke53281,0:print"[147]"tab(13)"[154]money $"a$:ifg=3then122
106 ife=3thenb=b-500:printtab(13)"[154]camera [158]- 500"
108 printtab(13)"[154]film [158]- 10":printtab(13)"[154]trip [158]-1000":b=b-1010
110 printtab(22)"[154]------":a$=str$(b):a$=right$(a$,len(a$)-o)
112 ifb<.thenprinttab(21)"-";
114 printtab(22)"$"a$
116 ifb<.thenprinttab(7)"you can't afford the trip!":b=b+1000:goto124
118 print"[154] your chopper is ready and waiting.":fori=.to7:a(i)=.:next:l=l+o
120 printtab(6)"[156]voyage"l"into the jungle...":gosub88:goto10
122 print" you have lost too many cameras!!"
124 ifs>99999thens=99999
126 fori=1to2000:next:a$=str$(s):i=len(a$):a$="final score:"+a$:i=int(14-i/2)
128 print"[147]"tab(i)a$:ifs=<h(9)thengosub82:goto150
130 j=9:fori=9to.step-o:ifs>h(i)thenj=i
132 next:ifj=9then136
134 fori=9toj+ostep-o:h(i)=h(i-o):n$(i)=n$(i-o):next
136 h(j)=s:n$(j)="":i=.:k=5:print" you have made it into the top ten!"
138 print" your name please: [151]................[157][157][157][157][157][157][157][157][157][157][157][157][157][157][157][157]";
140 printchr$(k)".[157]";:k=156-k:geta$:ifa$=""then140
142 ifa$=chr$(20)andi>.thenprint"[151].[157][157]";:i=i-o:n$(j)=left$(n$(j),i):goto140
144 ifa$=chr$(13)andi>.then150
146 ifi=15or(a$<"-"anda$<>" ")or(a$>"9"anda$<"a")ora$>"_"then140
148 printa$;:n$(j)=n$(j)+a$:i=i+o:goto140
150 poke53280,.:poke53281,.:print"[147]";
152 fori=.to5:printtab(9)"[156]**** top scores [156]****":next:print"";:fori=.to4
154 printe$:next:print"":k=22:fori=.to9
156 a$=str$(h(i)):a$=left$("00000",6-len(a$))+right$(a$,len(a$)-o)
158 a$="[159]"+n$(i)+left$(e$,15-len(n$(i)))+" "+a$
160 ifi<>2*int(i/2)then166
162 forj=otok:printright$(a$,j)"[145]":next
164 forj=oto9:printleft$(e$,j)a$"[145]":next:goto170
166 forj=otok:printtab(39-j)left$(a$,j)"[145]":next:forj=38-kto9step-o
168 printtab(j)a$" [145]":next
170 print:next:i=99
172 syss(6):j=peek(v(8)):if(jand16)=.then218
174 i=i-o:ifi>.then172
176 print"[147]"chr$(142):poke53280,11:poke53281,.
178 pokev(4),.:pokev(5),10:pokev(6),.:pokev(7),11
180 poke54277,.:poke54278,48:poke54296,143:poke54276,33:fori=.to255step5
182 poke54273,i:next:poke54276,32:syss(2):fori=10to250step10:pokev(5),i:next
184 poke54273,40:poke54276,129:poke54276,128:fori=250to10step-10:pokev(5),i:next
186 syss(3):poke53281,.:poke54273,15:poke54276,129:poke54276,128
188 print"[147][153]"tab(14)"[164][164][164][164][164][164][164][164][164][164][164][164]"chr$(13)tab(12)"[164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164]"
190 printtab(7)"[159][164][175][185][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][185][175][164]"
192 printtab(7)" p h o t o[160][160][160]s[160]a[160]f[160]a[160]r[160]i "
194 printtab(7)"[154][163][183][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][183][163]"
196 printtab(14)"[164][164][164][164][164][164][164][164][164][164][164][164]"chr$(13)tab(12)"[145][145][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164]"
198 printtab(10)"[154]@'89 by jon mattson"
200 printtab(10)"[156]use port [159]2 [156]joystick"
202 printtab(10)"[150]keys: [158]i [150]space"
204 printtab(18)"[158]u o =":printtab(17)"[158]j k [150]fire[209]"
206 printtab(18)"[158]n ,":printtab(19)"[158]m":printtab(10)"[156]press [150]fire [156]to start"
208 printtab(11)"[156]press '[150]q[156]' to quit":fori=.to500:next:i=150
210 syss(6):j=peek(v(8)):if(jand16)=.then218
212 geta$:ifa$="q"then222
214 i=i-o:ifi>.then210
216 goto150
218 pokev(.),12:pokev(o),3:b=1010:e=o:g=.:h=.:l=.:s=.:i=peek(53278)
220 fori=54272to54295:pokei,.:next:goto102
222 print"[147][150]quit? are you sure [y[150]/n[150]]? ";
224 geta$:ifa$="n"then176
226 ifa$<>"y"then224
228 printa$:print"[159]save high scores [[154]y[159]/[154]n[159]]? ";
230 geta$:ifa$="n"then242
232 ifa$<>"y"then230
234 open15,8,15:print#15,"s0:ss.hi":input#15,j:ifj>oandj<>62then240
236 open2,8,2,"0:ss.hi,s,w":input#15,j:ifj>.then240
238 fori=.to9:print#2,n$(i):print#2,h(i):next
240 close2:close15
242 poke56576,199:poke53272,21:poke648,4:print"[154][147]";:poke53280,14:poke53281,6
244 poke52,160:poke56,160:clr:goto326
246 dima(7),d(14),h(9),s(9),v(9),y(14),c$(19),n$(9)
248 fori=.to7:s(i)=38094+3*i:v(i)=s(.)+24+i:next:s(8)=52222:s(9)=52225
250 v(8)=780:v(9)=45760:o=1:v=53248:w=v+o:t=v+4:u=v+5:i=rnd(-ti)
252 a=.:b=.:c=.:d=.:e=.:f=.:g=.:h=.:j=.:k=.:l=.:p=.:q=.:r=.:s=.:z=.
254 fori=.to14:readd(i),y(i):next:d$="":fori=1to23:d$=d$+"":next:d$=d$+" "
256 fori=1to38:e$=e$+" ":next:fori=.to19:readc$(i):next
258 data 90,-4,90,-4,60,-12,60,-12,120,-4,120,-4,140,-10,180,-2,180,-2
260 data 50,-4,50,-4,100,-4,100,-4,0,-99,0,-99
262 data "[151]hmmm..."
264 data "humph. not half bad."
266 data "hey, that's almost good..."
268 data "[149]well, it's not yOur best, but..."
270 data "[149]you might just earn your keep."
272 data "[153]well, you're getting better..."
274 data "[153]there may be hope for you yet."
276 data "[158]now there's a novel angle..."
278 data "[158]an animal almost got in the way!"
280 data "[158]ever think of taking up botany?"
282 data "[158]nice landscape shot..."
284 data "do you leave the cap on, too?"
286 data "i hear the enquirer is hiring..."
288 data "[158]maybe you should try aiming...."
290 data "[158]ah, back to normal..."
292 data "[144]uh, huh..."
294 data "[151]maybe i'll hire the monkey..."
296 data "[151]i don't want to know..."
298 data "you really like those, don't you?"
300 data "ok, enough already!"
302 open15,8,15:open2,8,2,"0:ss.hi,s,r":input#15,j
304 ifj=.thenfori=.to9:input#2,n$(i):input#2,h(i):next
306 close2:close15:return
308 poke53280,.:poke53281,.
310 printchr$(14)"[147] [155][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][